┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Tool
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: DeepCopy.php
<?php declare(strict_types=1); namespace JsonSchema\Tool; use JsonSchema\Exception\JsonDecodingException; use JsonSchema\Exception\RuntimeException; class DeepCopy { /** * @param mixed $input * * @return mixed */ public static function copyOf($input) { $json = json_encode($input); if (JSON_ERROR_NONE < $error = json_last_error()) { throw new JsonDecodingException($error); } if ($json === false) { throw new RuntimeException('Failed to encode input to JSON: ' . json_last_error_msg()); } return json_decode($json, self::isAssociativeArray($input)); } /** * @param mixed $input */ private static function isAssociativeArray($input): bool { return is_array($input) && array_keys($input) !== range(0, count($input) - 1); } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 Validator/
DIR
—
2026-04-15 15:13
📄 DeepComparer.php
PHP
1.7 KB
2025-12-19 15:01
EDIT
📄 DeepCopy.php
PHP
873 B
2025-12-19 15:01
EDIT